import re from "../util/request"

export async function login(uinfo) {
    return await re("user/login", uinfo, "POST")
}

export async function getInfo(id=1) {
    return await re("user/id", { id }, "POST")
}